Correct some renamed functions.
authorTor Lillqvist <tml@iki.fi>
Sat, 3 Nov 2001 00:44:35 +0000 (00:44 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 3 Nov 2001 00:44:35 +0000 (00:44 +0000)
2001-11-03  Tor Lillqvist  <tml@iki.fi>

* gtk/gtk.def: Correct some renamed functions.

* gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
Windows to turn build-time paths from a gtk.immodules distributed
as part of a binary package into runtime ones in the
end-user-chosen installation directory.
(gtk_im_module_init): Use it for module path and domain
directory.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtk.def
gtk/gtkimmodule.c

index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 86286a38020e0d0c730461fdb9a0aa8789aa6b95..dfedd018179130ff78d73d54f85859556885632e 100644 (file)
@@ -7,6 +7,13 @@
 
        * gtk/gtk.def: Add a couple of missing entry points. (#63585)
 
+       * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
+       Windows to turn build-time paths from a gtk.immodules distributed
+       as part of a binary package into runtime ones in the
+       end-user-chosen installation directory.
+       (gtk_im_module_init): Use it for module path and domain
+       directory.
+
 2001-11-02  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
index 2a20f064510a22621846485a20fd032a4d98a82f..38b5271df170b4a5bbf5f31a59c12b71c446d1e4 100755 (executable)
@@ -719,7 +719,6 @@ EXPORTS
        gtk_im_context_simple_new
        gtk_im_module_get_type
        gtk_im_multicontext_append_menuitems
-       gtk_im_multicontext_commit_cb
        gtk_im_multicontext_get_type
        gtk_im_multicontext_new
        gtk_image_get
@@ -1256,10 +1255,8 @@ EXPORTS
        gtk_selection_data_free
        gtk_selection_data_get_targets
        gtk_selection_data_get_text
-       gtk_selection_data_get_tree_row
        gtk_selection_data_set
        gtk_selection_data_set_text
-       gtk_selection_data_set_tree_row
        gtk_selection_data_targets_include_text
        gtk_selection_incr_event
        gtk_selection_notify
@@ -1721,6 +1718,7 @@ EXPORTS
        gtk_tree_drag_source_drag_data_delete
        gtk_tree_drag_source_drag_data_get
        gtk_tree_drag_source_get_type
+       gtk_tree_get_row_drag_data
        gtk_tree_get_type
        gtk_tree_insert
        gtk_tree_item_collapse
@@ -1816,6 +1814,7 @@ EXPORTS
        gtk_tree_selection_unselect_all
        gtk_tree_selection_unselect_iter
        gtk_tree_selection_unselect_path
+       gtk_tree_set_row_drag_data
        gtk_tree_set_selection_mode
        gtk_tree_set_view_lines
        gtk_tree_set_view_mode
@@ -1848,7 +1847,6 @@ EXPORTS
        gtk_tree_view_collapse_row
        gtk_tree_view_column_add_attribute
        gtk_tree_view_column_cell_draw_focus
-       gtk_tree_view_column_cell_event
        gtk_tree_view_column_cell_focus
        gtk_tree_view_column_cell_get_size
        gtk_tree_view_column_cell_is_visible
index ea40819e376edeca6ed6968429f0d36012999c02..1be18f554d2f7f3809e5d36073241f782f240ba9 100644 (file)
@@ -33,6 +33,7 @@
 #include <pango/pango-utils.h>
 #include "gtkimmodule.h"
 #include "gtkimcontextsimple.h"
+#include "gtkprivate.h"
 #include "gtkrc.h"
 #include "config.h"
 #include "gtkintl.h"
@@ -222,6 +223,28 @@ add_module (GtkIMModule *module, GSList *infos)
   modules_list = g_slist_prepend (modules_list, module);
 }
 
+#ifdef G_OS_WIN32
+static void
+correct_libdir_prefix (gchar **path)
+{
+  if (strncmp (*path, GTK_LIBDIR, strlen (GTK_LIBDIR)) == 0)
+    {
+      /* This is an entry put there by make install on the
+       * packager's system. On Windows a prebuilt GTK+
+       * package can be installed in a random
+       * location. The gtk.immodules file distributed in
+       * such a package contains paths from the package
+       * builder's machine. Replace the path with the real
+       * one on this machine.
+       */
+      gchar *tem = *path;
+      *path = g_strconcat (GTK_LIBDIR, tem + strlen (GTK_LIBDIR), NULL);
+      g_free (tem);
+    }
+}
+#endif
+
+
 static void
 gtk_im_module_init ()
 {
@@ -280,6 +303,9 @@ gtk_im_module_init ()
            }
 
          module->path = g_strdup (tmp_buf->str);
+#ifdef G_OS_WIN32
+         correct_libdir_prefix (&module->path);
+#endif
          g_type_module_set_name (G_TYPE_MODULE (module), module->path);
        }
       else
@@ -303,6 +329,9 @@ gtk_im_module_init ()
          if (!pango_scan_string (&p, tmp_buf))
            goto context_error;
          info->domain_dirname = g_strdup (tmp_buf->str);
+#ifdef G_OS_WIN32
+         correct_libdir_prefix (&info->domain_dirname);
+#endif
 
          if (!pango_scan_string (&p, tmp_buf))
            goto context_error;